/* eslint-disable */
import request from '@/utils/request'

// 账号登陆
export function authorizations(data) {
  return request({
    url: '/authorizations',
    method: 'post',
    data,
    noToken: true
  })
}

// 验证码
export function getImageCode() {
  return request({
    url: '/image/code',
    method: 'post',
    noToken: true
  })
}
// 发送登录验证码
export function setImageCode(data) {
  return request({
    url: '/verification/codes',
    method: 'post',
    noToken: true,
    data
  })
}
// 验证码登录
export function loginByVerify(data) {
  return request({
    url: '/authorizations',
    method: 'PUT',
    noToken: true,
    data
  })
}
// 注册
export function register(data) {
  return request({
    url: '/register',
    method: 'POST',
    noToken: true,
    data
  })
}
